@selall = (h) ->
  $h = $ h
  status = $h.prop 'checked'
  $all = $ '.tr:not(.disabled)>.l0 :checkbox'
  $all.prop 'checked', status

@multidown = () ->
  $tbody = $ '.table>.tr:not(.thead)'
  $all = $ '.tr>.l0 :checkbox'  
  downitem = (i for e, i in $all when e.checked)
  if downitem.length
    alert "下载了第#{downitem}个文件"
  else
    alert '没下载文件'